/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.channel.service.ChannelService
   Module Description   :

   Date Created      : 2010/7/5
   Original Author   : feeling
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.channel.service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.yaodian100.core.common.dao.impl.CommonCriteria;
import com.yaodian100.core.common.exception.CoreException;
import com.yaodian100.core.common.service.DomainService;
import com.yaodian100.ec.channel.entity.Channel;
import com.yaodian100.ec.channel.entity.ChannelTemplate;

/**
 * @author feeling
 * 
 */
public interface ChannelService extends DomainService<Channel> {

	public Long getActivateChannelIdByName(String channelName) throws Exception;

	public List<ChannelTemplate> getAvailableChannelTemplate(String channelName);

	public ChannelTemplate getAvailableChannelTemplate(String channelName, String type);

	public int getChannelByCondication(String channelName, String actDate, String actType, String channelStatus)
			throws Exception;

	public List<Channel> getChannelByCondication(String channelName, String actDate, String actType,
			String channelStatus, int firstResult, int maxResults) throws Exception;

	public ChannelTemplate getChannelTemplate(Serializable id) throws Exception;

	public List<ChannelTemplate> getChannelTemplateListPageable(CommonCriteria criteria, String[] sortOrder,
			int firstResult, int maxResults) throws Exception;

	public int getChannelTemplateListSize(CommonCriteria criteria) throws Exception;

	public ChannelTemplate saveChannelTemplate(ChannelTemplate entity) throws CoreException;

	public Map<String, String> splitChild(String child);

}